namespace Excerise;

public class Car
{
    //属性
    public string Brand { get; set; }
    public string Color { get; set; }
    public int Speed { get; set; }

    //构造函数
    public Car(string brand, string color)
    {
        Brand = brand;
        Color = color;
        Speed = 0;
    }

    public void Accelerate(int increment)
    {
        Speed += increment;
    }
}